package com.td.framework.kqxt.kqxx;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.TimeZone;

import com.td.framework.common.AbstractAction;
import com.td.framework.utils.CalendarBody;

public class KqxxAction extends AbstractAction{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4637859638665880710L;
	private int year=-1; //该变量用于存储年 
	private int month=-1; //月从0月开始
	private List grykqList;//--TODO 到时需要改成泛型集合
	
	/**
	 * 得到个人月考勤
	 * @return
	 */
	public String getGrykq(){
		CalendarBody calBody = new CalendarBody();
		GregorianCalendar gc = new GregorianCalendar(TimeZone.getDefault());
        gc.setTime(new Date());        	        
        if(year==-1||month==-1){
	        year = gc.get(Calendar.YEAR);
	        month =gc.get(Calendar.MONTH);
        }
		calBody.setYear(year);
		calBody.setMonth(month);
		grykqList = calBody.getCalendarBody();
		return "success";
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public List getGrykqList() {
		return grykqList;
	}
	public void setGrykqList(List grykqList) {
		this.grykqList = grykqList;
	}
   
}

